/* 2017-9-28 16:04:24 | 修改 木遥（微信:  http://marsgis.cn/weixin.html ） */
//模块：
mars3d.widget.bindClass(mars3d.widget.BaseWidget.extend({
    options: {
        //弹窗
        view: {
            type: "window",
            url: "view.html",
            windowOptions: {
                width: 250,
                height: 300
            }
        },
    },
    //初始化[仅执行1次]
    create: function () {

    },
    viewWindow: null,
    //每个窗口创建完成后调用
    winCreateOK: function (opt, result) {
        this.viewWindow = result;
    },
    //打开激活
    activate: function () { 

    },
    //关闭释放
    disable: function () {
        this.viewWindow = null;


    },
    getData: function () {
        var item = this.config.dataQy;//传入过来的参数 
        return item;
    },
    //打开视频监控
    showSPJK: function () {
        var item = this.config.dataQy;
        if (item === null) return;

        var filename = serverURL + '/video/lukou.mp4';

        var jkWidgetUri = 'widgetsTS/qyVideo/widget.js';
        var roamingJK = mars3d.widget.getClass(jkWidgetUri);
        if (roamingJK && roamingJK.isActivate) {
            roamingJK.shoData(filename);
        }
        else {
            mars3d.widget.activate({
                uri: jkWidgetUri, 
                filename: filename
            });
        }

    },



}));

